package com.henry.Client;


import java.io.IOException;

public class ClientView {
    private ClientInitClose cic;

    public ClientView() {
    }

    public ClientView(ClientInitClose cic) {
        this.cic = cic;
    }

    public void initClientView() throws IOException, ClassNotFoundException {
        while (true) {
            System.out.println("考试系统");
            System.out.print("[1] 学生登录  [2] 管理员登录\n");
            System.out.println("[3] 退出系统");
            int next = ClientScanner.getScanner().nextInt();
            switch (next) {
                case 1:
                    new ClientStudent(cic).clientStudentLogin();
                    return ;
                case 2:
                    new ClientManager(cic).clientManagerLogin();
                    break;
                case 3:
                    System.out.println("已退出！");
                    return ;
                default:
                    System.out.println("输入无效，请重新输入！");
            }
        }
    }

}
